﻿using System;
using System.Collections.Generic;
using System.Text;
using PPAP.DAO;
using PPAP.Model;
using System.Data;

namespace PPAP.BO
{
    public class AttachmentTypeBO
    {
        public AttachmentTypeBO() { }
        AttachmentTypeDAO dao = new AttachmentTypeDAO();
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(AttachmentType model)
        {
            return dao.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public int Update(AttachmentType model)
        {
            return dao.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public int Delete(int id)
        {
            return dao.Delete(id);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public AttachmentType GetModel(int id)
        {
            return dao.GetModel(id);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dao.GetList(strWhere);
        }

        /// <summary>
        /// 获取需要上传附件的类型
        /// </summary>
        /// <param name="IsLevel"></param>
        /// <returns></returns>
        public DataSet GetIsLevel(string IsLevel)
        {
            return dao.GetIsLevel(IsLevel);
        }
    }
}
